<template>
  <div>
    <div style="font-size:16px;font-weight:600;border-bottom:1px solid #cdcdcd;padding-bottom:5px;">本地音乐</div>
    <div style="display:flex;align-items: center;margin:10px 0 10px 0;justify-content: space-between;">
      <div style="display:flex;align-items: center;">
        <button>全部播放</button><div style="margin-left:10px;">本地共有{{songs.length}}首歌曲</div>
      </div>
      <div></div>
    </div>
    <table class="table">
      <tr>
        <th></th>
        <th>音乐标题</th>
        <th>歌手</th>
        <th>专辑</th>
        <th>时长</th>
        <th>大小</th>
      </tr>
      <tr v-for="(item,index) in songs" v-bind:key="index" :style="index%2==0?'background-color: #FAFAFA;':''">
        <td align="center"><span style="color:#D3D3D3;">{{'0'+(index+1)}}</span></td>
        <td>{{item.name}}</td>
        <td>{{item.singer}}</td>
        <td>{{item.zj}}</td>
        <td>{{item.time}}</td>
        <td>{{item.size}}</td>
      </tr>
    </table>
    <!-- <div v-for="item in 100" v-bind:key="item.id">
      fsdfsdfdfdfdf
    </div> -->
    
  </div>
</template>

<script>
export default {
  data(){
    return{
      songs:[
        {
          name:'爱就一个字',
          singer:'张信哲',
          zj:'我好想',
          time:'04:32',
          size:'30.4MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
        {
          name:'是非题',
          singer:'范玮琪',
          zj:'哲学家',
          time:'03:52',
          size:'27.0MB'
        },
      ]
    }
  }
}
</script>

<style scoped>
.table{
  width: 100%;
  font-size:13px;
  border-collapse:collapse;
  
}

.table th{
  line-height:34px;
  text-align: left;
  color:#939393;
}

.table td{
  line-height:34px;
  color:#323232;
}

.table tr:hover{
  background-color: #F1F2F4;
  
}

button{
  background-color: #E33E3E;
  color:#fff;
  border: 0px;
  padding:5px 15px 5px 15px;
  border-radius: 15px;
  cursor: pointer;
  
}

</style>